﻿using System;
using System.Net;
namespace Skyper.Service {
	public class ServiceAddress {
		#region Fields
		private readonly IPAddress ip;
		private readonly String name;
		#endregion
		#region Constructor
		public ServiceAddress(IPAddress adr) {
			this.ip = adr;
			this.name = this.ip.ToString();
		}
		#endregion
		#region Public
		public sealed override string ToString() {
			return this.name;
		}
		#endregion
		#region Property
		public String Name {
			get { return this.name; }
		}
		#endregion
	}
}
